home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #14
/
Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO
/
pcboard
/
msgtag11.zip
/
KILL.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1996-01-30
|
3KB
|
185 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 3.1O (Encryption type I) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
BigStr BIGSTR001
;------------------------------------------------------------------------------
STRING004 = ReadLine(PCBDat(), 204)
STRING004 = FileInf(STRING004, 6) + ":" + FileInf(STRING004, 7)
STRING005 = STRING004 + "mtg" + String(CurConf()) + ".lst"
INTEGER002 = TokCount()
If (INTEGER002 < 1) Then
If (Exist(STRING005)) Then
If (FileInf(STRING005, 4) > 0) BOOLEAN001 = 1
Endif
PrintLn "@X0F*@X0D────────────────────────────────────────@X0F*"
PrintLn " @X0BEnter single numbers @X0F(@X0E1 4 9@X0F)@X0B or enter"
PrintLn " @X0Branges @X0F(@X0E1-4 6-12@X0F)@X0B of msg #'s to kill@X07"
Newline
PrintLn " @X03Low Message Number@X0F :@X0E ", LoMsgNum()
PrintLn " @X03High Message Number@X0F:@X0E ", HiMsgNum()
PrintLn "@X0F*@X0D────────────────────────────────────────@X0F*"
If (BOOLEAN001) Then
STRING001 = "@X0AEnter the Message #(s) to Kill, @X02(@X0FTAG@X02)=@X03@X0BTagged @X03Msgs, @X0F(Enter)=none@X07"
Else
STRING001 = "@X0AEnter the Message #(s) to Kill @X0F(Enter)=none@X07"
Endif
InputStr STRING001, BIGSTR001, 14, 50, " ;0123456789-DELTAG", 256 + 8
If (BIGSTR001 == "") Goto LABEL002
If (BIGSTR001 == "TAG") Gosub LABEL001
BIGSTR001 = ReplaceStr(BIGSTR001, " ", ";")
If (Right(BIGSTR001, 1) <> ";") BIGSTR001 = BIGSTR001 + ";"
Else
While (1) Do
STRING004 = GetToken()
If (STRING004 == "") Break
BIGSTR001 = BIGSTR001 + STRING004 + ";"
EndWhile
If (InStr(BIGSTR001, "-") > 1) Gosub LABEL003
Endif
While (1) Do
STRING004 = Mid(BIGSTR001, 1, InStr(BIGSTR001, ";") - 1)
BIGSTR001 = Mid(BIGSTR001, InStr(BIGSTR001, ";") + 1, Len(BIGSTR001) - InStr(BIGSTR001, ";"))
If (STRING004 == "") Break
Command 0, "K " + STRING004
EndWhile
Goto LABEL002
:LABEL001
FOpen 1, STRING005, 0, 0
FRead 1, BIGSTR001, FileInf(STRING005, 4)
FClose 1
Return
:LABEL002
KbdStuff Chr(13)
End
:LABEL003
STRING002 = BIGSTR001
BIGSTR001 = ""
Tokenize STRING002
If (TokCount() == 0) Return
For INTEGER001 = 1 To Len(STRING002)
INTEGER004 = 0
INTEGER003 = 0
STRING003 = GetToken()
If (STRING003 == "") Break
If (InStr(STRING003, "-") == 0) Then
BIGSTR001 = BIGSTR001 + STRING003 + ";"
Continue
Endif
INTEGER003 = S2I(Mid(STRING003, 1, InStr(STRING003, "-") - 1), 10)
If (INTEGER003) INTEGER004 = S2I(Mid(STRING003, InStr(STRING003, "-") + 1, Len(STRING003)), 10)
If (INTEGER004 >= INTEGER003) Then
For INTEGER002 = INTEGER003 To INTEGER004
BIGSTR001 = BIGSTR001 + String(INTEGER002) + ";"
Next
Continue
Endif
Newline
PrintLn "@X0FEnding value is less than Starting value @X0E(@X0CEntry not processed@X0E)@X07"
Next
Return
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 22 Goto
; 26 Let
; 7 PrintLn
; 19 If
; 1 FOpen
; 1 FClose
; 1 InputStr
; 2 Gosub
; 3 Return
; 2 Newline
; 1 Tokenize
; 1 KbdStuff
; 1 FRead
; 1 Command
;
;
; ■ Functions used :
;
; 18 +
; 3 -
; 7 ==
; 1 <>
; 3 <
; 2 <=
; 2 >
; 5 >=
; 9 !
; 4 &&
; 2 ||
; 4 Len(
; 4 Mid()
; 1 Right()
; 1 Chr()
; 7 InStr()
; 2 String()
; 1 CurConf()
; 1 PCBDat()
; 1 ReadLine()
; 2 GetToken()
; 1 Exist()
; 2 S2I()
; 4 FileInf()
; 2 TokCount()
; 1 ReplaceStr()
; 1 LoMsgNum()
; 1 HiMsgNum()
;
;------------------------------------------------------------------------------
;
; Analysis flags : d
;
; d - Access PCBOARD.DAT ■ 2
; Program gets the full pathname to PCBOARD.DAT, this may be usefull
; for many PPE so they can find various informations on the system
; (system paths, max number of lines in messages, ...) but it may also
; be a way to gather vital informations.
; ■ Search for : PCBDAT()
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 2 For/Next
; 2 While/EndWhile
; 5 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------